package com.fc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fc.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户地址关系表
 * </p>
 *
 * @author 
 * @since 2024-11-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("user_address_relation")
@Schema(name="UserAddressRelation对象", description="用户地址关系表")
public class UserAddressRelation extends BaseEntity {

    @Schema(title = "用户ID")
    private Long userId;

    @Schema(title = "地址ID")
    private Long addressId;

    @Schema(title = "收货人")
    private String consignee;

    @Schema(title = "收货人手机号")
    private String phoneNumber;

    @Schema(title = "标签（如家庭、公司等）")
    private String label;

    @Schema(title = "是否默认地址，0 否，1 是")
    private Boolean isDefault;
}
